home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-08-22 | 2.8 KB | 86 lines | [TEXT/GEOL] |
- Item 6345688 4-Aug-89 09:50
-
- From: LMILLETT Millett, Lonnie
-
- To: D2765 Brainchild, E Corbett, S Rome, PRT
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: Re: Opt/Debug Building…
-
- Sean,
-
- There are several ways of doing what you want to do. With MacApp 2.0b9,
- MABuild was given several new default build configurations which can be found
- by looking at MABuildDefaults in MacApp's startup file. For the sake of
- discussion here it is:
-
- SET MABuildDefaults ∂
- "-p ∂
- -Asm '-case on' ∂
- -Debug ∂
- -Make -w ∂
- -Rez -rd ∂
- -Link '-srt -mf' ∂
- -Lib '-mf' ∂
- -CPlus '-d SHRT_MAX=32767 -d FALSE=0 -d TRUE=1' ∂
- -RenameFlag NmDbInUnPeRaTrTe 'Debug Files' ∂
- -RenameFlag S6Cq20FpNmDbInUnPeRaTrTe 'Debug /MacII+Sys6+' ∂
- -RenameFlag Te 'Non-Debug Files' ∂
- -RenameFlag InTe 'Non-Debug /Inspector' ∂
- -RenameFlag S6Cq20FpTe 'Non-Debug /MacII+Sys6+' ∂
- ∂
- -RenameFlag NmDbInUnPeRaTrTeSm 'SADE Debug Files' ∂
- -RenameFlag S6Cq20FpNmDbInUnPeRaTrTeSm 'SADE Debug /MacII+Sys6+' ∂
- -RenameFlag TeSm 'SADE Non-Debug Files' ∂
- -RenameFlag S6Cq20FpTeSm 'SADE Non-Debug /MacII+Sys6+' ∂
- -RenameFlag InTeSm 'SADE Non-Debug /Inspector'"
- EXPORT MABuildDefaults
-
- Yours is the simple case of wanting the 'Debug Files' configuration and the
- 'Non-Debug Files' configuration. Therefore, by executing MacApp's startup file
- so MABuildDefaults is setup up correctly, issuing the command:
-
- mabuild yourprogram
-
- while in the directory where your sources and make file are found will create a
- sub-folder by the name '.Debug Files'. This is where MABuild will put the
- object files and executable. For a non-debug you simply have to say:
-
- mabuild -nodebug yourprogram
-
- and another folder will be created with the name '.Non-Debug Files' which will
- contain your optimized object files and executable.
-
- By looking at MABuildDefaults you can see that if you wanted to generate debug
- object files with symbols (for Sade or some other tool which uses sym files)
- you could say:
-
- mabuild -sym yourprogram
-
- and a seperate sub-folder with the name '.SADE Debug Files' would be created.
-
- If you wanted a configuration that is not covered by the supplied defaults, for
- example debug with symbols but with performance tools off, you can "override"
- the defaults and rename the flags to your own name such as:
-
- Set MABuildDefaults "{MaBuildDefaults} ∂
- -Sym∂
- -NoPerform∂
- -RenameFlag NmDbInUnRaTrTeSm 'Sade'"
-
- Notice that the flags are different than the default NmDbInUnPeRaTrTeSm (the Pe
- is missing). Now by specifying:
-
- mabuild yourprogram
-
- the default build will be YOUR default build and a sub-folder will be created
- for the files with the name '.Sade'.
-
- I hope this clears up some of the mysteries of mabuild for you.
-
- Lonnie Millett
- Apple Computer
-
-
-